<%= f.fields_for :customer_visible_to_groups, customer_visible_to_group do |pf| %>
<div id='group_<%= customer_visible_to_group.group_id %>' class='item grid_8'>
  <div class='name'><%= customer_visible_to_group.group.name %></div>
  <div>
    <%= pf.hidden_field :group_id %>
    <%= pf.hidden_field :_destroy, :value => false, :class => :destory %>
    <%= link_to_function "移除","$('#group_#{customer_visible_to_group.group_id}').hide();$('#group_#{customer_visible_to_group.group_id} .destory').val('true');init_add_group_select()", :class => 'l_crud l_delete'   %>          
  </div>
</div>
<% end %>